<script setup lang="ts">
defineOptions({
  name: "BarChart"
});
import ReChart from "@/components/ReChart/index.vue";
import { barChartData } from "@/components/ReChart/samples";
</script>

<template>
  <div class="box">
    <div class="bar-chart-title">周销售数据统计</div>
    <div class="bar-chart">
      <ReChart :data="barChartData" type="bar" height="100%" width="100%" />
    </div>
  </div>
</template>

<style lang="scss" scoped>
.box {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 10px;
  padding-top: 20px;
  overflow: hidden;

  .bar-chart {
    box-sizing: border-box;
    width: 100%;
    height: 350px;
    padding: 10px;
    overflow: hidden;
  }

  .bar-chart-title {
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-align: center;
  }
}
</style>
